package conllections;

import com.sun.source.tree.NewArrayTree;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

public class Tset{
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"cyh","lyh","lyb","fyw","zqy");
        System.out.println(list);
        Collections.sort(list);
        System.out.println(list);
        Collections.shuffle(list);
        System.out.println(list);
    }
}
